import request from '@/utils/request'
import { planProducer } from '../config'
let apiUrl = planProducer.startsWith('/') ? planProducer : ('/' + planProducer)// + '-lzh'

/**
 * 分页查询
 * @param data
 */
export function getStagePlanBySearch(data) {
    return request({
        url: apiUrl + '/stagePlan/getStagePlanBySearch',
        method: 'post',
        data: data
    })
}

/**
 * 添加分阶段策划
 * @param data
 */
export function insertSelective(data) {
    return request({
        url: apiUrl + '/stagePlan/insertSelective',
        method: 'post',
        data: data
    })
}

/**
 * 编辑分阶段策划
 * @param data
 */
export function updateByPrimaryKeySelective(data) {
    return request({
        url: apiUrl + '/stagePlan/updateByPrimaryKeySelective',
        method: 'post',
        data: data
    })
}

/**
 * 变更分阶段策划
 * @param data
 */
export function changeSelective(data) {
    return request({
        url: apiUrl + '/stagePlan/changeSelective',
        method: 'post',
        data: data
    })
}

/**
 * 删除分阶段策划
 * @param data
 */
export function deleteByPrimaryKey(data) {
    return request({
        url: apiUrl + '/stagePlan/deleteByPrimaryKey?id='+data,
        method: 'post',
    })
}

/**
 * 分阶段策划表详情
 * @param data
 */
export function getStagePlanDetail(data) {
   return request({
       url: apiUrl + '/stagePlan/getStagePlanDetail',
       method: 'post',
       data
   })
}

/**
 * 分阶段策划表详情
 * @param data
 */
export function queryStagePlanVersionList(data) {
    return request({
        url: apiUrl + '/stagePlanVersion/queryStagePlanVersionList',
        method: 'post',
        data
    })
 }


